<%-- 
    Document   : AddManagerProcess
    Created on : Mar 29, 2012, 2:21:48 AM
    Author     : Tokino
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%!
%>



<jsp:useBean id="formAddManager" class="servlets.AddManager" scope="request">
    <jsp:setProperty name="formAddManager" property="*"/>
</jsp:useBean>  
<jsp:useBean id="SecprogScopeSession" class=
             "servlets.SecprogScopeSession" scope="session" />

<%


    if (!SecprogScopeSession.getIsLogin()) {
        response.sendRedirect("../index.jsp");
    }
    if (SecprogScopeSession.getAccounttype() == 1) {
        response.sendRedirect("../customer/CMain.jsp");
    }
    if (SecprogScopeSession.getAccounttype() == 2) {
        response.sendRedirect("../accounting/PCMain.jsp");
    }
    if (SecprogScopeSession.getAccounttype() == 3 || SecprogScopeSession.getAccounttype() == 4 || SecprogScopeSession.getAccounttype() == 5 || SecprogScopeSession.getAccounttype() == 6) {
        response.sendRedirect("../product/PMain.jsp");
    }

    if (formAddManager.checkaddmanager()) {

%>
<jsp:forward page="CreateManager.jsp"/>
<%} else {
%>
<jsp:forward page="CreateManager.jsp"/>
<%    }
%>
